package org.anti996.lms.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.anti996.lms.util.GeoPoint;

import java.io.Serializable;

/**
 * <p>
 * 仓库表
 * </p>
 *
 * @author The Anti996 Authors
 * @since 2022-07-15
 */
@Getter
@Setter
  @ApiModel(value = "Warehouse对象", description = "仓库表")
public class Warehouse implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("仓库编号")
        @TableId(value = "w_id", type = IdType.AUTO)
      private Integer wId;

      @ApiModelProperty("名称")
      private String name;

      @ApiModelProperty("详细地址")
      private String addr;

      @ApiModelProperty("经纬度")
      private GeoPoint loc;

      @ApiModelProperty("逻辑删除")
        @TableLogic  // 逻辑删除
      private Boolean deleted;
}
